package com.wing.sell.strategy;

import com.wing.sell.model.request.DeliveryRecordForm;
import com.wing.sell.model.response.FinishedOrderVo;
import com.wing.sell.model.response.OrderSkuDetailSearchVo;

import java.util.List;

/**
*@Description: 交付记录策略接口
*@Project: szgc-enterprise-coding
*@Package: com.wing.sell.strategy.SelOrderGenerateStrategy
*@Date: 2024/12/16 09:49 
*@Author: heZhou
*@Version: 1.0
*/
public interface SelOrderGenerateStrategy {

    /**
     * 是否进入该策略
     * @param type 类型
     * @return
     */
    boolean isGenerateOrder(String type);

    /**
     * 记录生成结果
     * @param deliveryRecordForm 入参
     * @return 是否成功
     */
    Integer generateOrderResult(DeliveryRecordForm deliveryRecordForm);

    /**
     * 根据订单 查询详情
     * @param orderId 订单id
     * @return 查询结果
     */
    List<OrderSkuDetailSearchVo> getDetailBy(Long orderId,Long warehouseId);
}
